import request from '/src/utils/request.js'

// 查询部门下拉树结构
export function treeselect(params) {
  return request({
    url: '/api/dept/shuxing',
    method: 'get',
    params
  })
}
// 新增
export function add(data) {
  return request({
    url: '/api/dept/add',
    method: 'post',
    data
  })
}

// 查询部门列表
export function listDept(query) {
  return request({
    url: '/api/dept/list',
    method: 'get',
    params: query
  })
}
